import java.io.*;
public class MyOD {
    public static void main(String[] args){
        FileInputStream fis = null;
        FileOutputStream fos = null;
        try {
            fis = new FileInputStream("C:\\Users\\dell\\Desktop\\From.txt");
            fos = new FileOutputStream("C:\\Users\\dell\\Desktop\\To.txt");
            byte [] buffer = new byte [100];
            fis.read(buffer,0,buffer.length);
            fos.write(buffer,0,buffer.length);
            String s = new String(buffer);
            s = s.trim();
            System.out.println(s);
        }
        catch (Exception e ){
            System.out.println(e);
        }
    }
}